home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / enscript.4 / enscript / enscript-1.4.0 / afmlib / enc_mac.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-11  |  6.1 KB  |  288 lines

  1. /* 
  2.  * AFM mac encoding.
  3.  * Copyright (c) 1996 Markku Rossi.
  4.  *
  5.  * Author: Markku Rossi <mtr@iki.fi>
  6.  */
  7.  
  8. /*
  9.  * This file is part of the AFM library.
  10.  * 
  11.  * This library is free software; you can redistribute it and/or
  12.  * modify it under the terms of the GNU Library General Public
  13.  * License as published by the Free Software Foundation; either
  14.  * version 2 of the License, or (at your option) any later version.
  15.  *
  16.  * This library is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  19.  * Library General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU Library General Public
  22.  * License along with this library; if not, write to the Free
  23.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  */
  25.  
  26. #include "afmint.h"
  27.  
  28. AFMEncodingTable afm_mac_encoding[] =
  29. {
  30.   {0x00, AFM_ENC_NONE},
  31.   {0x01, AFM_ENC_NONE},
  32.   {0x02, AFM_ENC_NONE},
  33.   {0x03, AFM_ENC_NONE},
  34.   {0x04, AFM_ENC_NONE},
  35.   {0x05, AFM_ENC_NONE},
  36.   {0x06, AFM_ENC_NONE},
  37.   {0x07, AFM_ENC_NONE},
  38.   {0x08, AFM_ENC_NONE},
  39.   {0x09, AFM_ENC_NONE},
  40.   {0x0a, AFM_ENC_NONE},
  41.   {0x0b, AFM_ENC_NONE},
  42.   {0x0c, AFM_ENC_NONE},
  43.   {0x0d, AFM_ENC_NONE},
  44.   {0x0e, AFM_ENC_NONE},
  45.   {0x0f, AFM_ENC_NONE},
  46.   {0x10, AFM_ENC_NONE},
  47.   {0x11, AFM_ENC_NONE},
  48.   {0x12, AFM_ENC_NONE},
  49.   {0x13, AFM_ENC_NONE},
  50.   {0x14, AFM_ENC_NONE},
  51.   {0x15, AFM_ENC_NONE},
  52.   {0x16, AFM_ENC_NONE},
  53.   {0x17, AFM_ENC_NONE},
  54.   {0x18, AFM_ENC_NONE},
  55.   {0x19, AFM_ENC_NONE},
  56.   {0x1a, AFM_ENC_NONE},
  57.   {0x1b, AFM_ENC_NONE},
  58.   {0x1c, AFM_ENC_NONE},
  59.   {0x1d, AFM_ENC_NONE},
  60.   {0x1e, AFM_ENC_NONE},
  61.   {0x1f, AFM_ENC_NONE},
  62.   {0x20, "space"},
  63.   {0x21, "exclam"},
  64.   {0x22, "quotedbl"},
  65.   {0x23, "numbersign"},
  66.   {0x24, "dollar"},
  67.   {0x25, "percent"},
  68.   {0x26, "ampersand"},
  69.   {0x27, "quoteright"},
  70.   {0x28, "parenleft"},
  71.   {0x29, "parenright"},
  72.   {0x2a, "asterisk"},
  73.   {0x2b, "plus"},
  74.   {0x2c, "comma"},
  75.   {0x2d, "minus"},
  76.   {0x2e, "period"},
  77.   {0x2f, "slash"},
  78.   {0x30, "zero"},
  79.   {0x31, "one"},
  80.   {0x32, "two"},
  81.   {0x33, "three"},
  82.   {0x34, "four"},
  83.   {0x35, "five"},
  84.   {0x36, "six"},
  85.   {0x37, "seven"},
  86.   {0x38, "eight"},
  87.   {0x39, "nine"},
  88.   {0x3a, "colon"},
  89.   {0x3b, "semicolon"},
  90.   {0x3c, "less"},
  91.   {0x3d, "equal"},
  92.   {0x3e, "greater"},
  93.   {0x3f, "question"},
  94.   {0x40, "at"},
  95.   {0x41, "A"},
  96.   {0x42, "B"},
  97.   {0x43, "C"},
  98.   {0x44, "D"},
  99.   {0x45, "E"},
  100.   {0x46, "F"},
  101.   {0x47, "G"},
  102.   {0x48, "H"},
  103.   {0x49, "I"},
  104.   {0x4a, "J"},
  105.   {0x4b, "K"},
  106.   {0x4c, "L"},
  107.   {0x4d, "M"},
  108.   {0x4e, "N"},
  109.   {0x4f, "O"},
  110.   {0x50, "P"},
  111.   {0x51, "Q"},
  112.   {0x52, "R"},
  113.   {0x53, "S"},
  114.   {0x54, "T"},
  115.   {0x55, "U"},
  116.   {0x56, "V"},
  117.   {0x57, "W"},
  118.   {0x58, "X"},
  119.   {0x59, "Y"},
  120.   {0x5a, "Z"},
  121.   {0x5b, "bracketleft"},
  122.   {0x5c, "backslash"},
  123.   {0x5d, "bracketright"},
  124.   {0x5e, "asciicircum"},
  125.   {0x5f, "underscore"},
  126.   {0x60, "quoteleft"},
  127.   {0x61, "a"},
  128.   {0x62, "b"},
  129.   {0x63, "c"},
  130.   {0x64, "d"},
  131.   {0x65, "e"},
  132.   {0x66, "f"},
  133.   {0x67, "g"},
  134.   {0x68, "h"},
  135.   {0x69, "i"},
  136.   {0x6a, "j"},
  137.   {0x6b, "k"},
  138.   {0x6c, "l"},
  139.   {0x6d, "m"},
  140.   {0x6e, "n"},
  141.   {0x6f, "o"},
  142.   {0x70, "p"},
  143.   {0x71, "q"},
  144.   {0x72, "r"},
  145.   {0x73, "s"},
  146.   {0x74, "t"},
  147.   {0x75, "u"},
  148.   {0x76, "v"},
  149.   {0x77, "w"},
  150.   {0x78, "x"},
  151.   {0x79, "y"},
  152.   {0x7a, "z"},
  153.   {0x7b, "braceleft"},
  154.   {0x7c, "bar"},
  155.   {0x7d, "braceright"},
  156.   {0x7e, "tilde"},
  157.   {0x7f, AFM_ENC_NONE},
  158.   {0x80, "Adieresis"},
  159.   {0x81, "Aring"},
  160.   {0x82, "Ccedilla"},
  161.   {0x83, "Eacute"},
  162.   {0x84, "Ntilde"},
  163.   {0x85, "Odieresis"},
  164.   {0x86, "Udieresis"},
  165.   {0x87, "aacute"},
  166.   {0x88, "agrave"},
  167.   {0x89, "acircumflex"},
  168.   {0x8a, "adieresis"},
  169.   {0x8b, "atilde"},
  170.   {0x8c, "aring"},
  171.   {0x8d, "ccedilla"},
  172.   {0x8e, "eacute"},
  173.   {0x8f, "egrave"},
  174.   {0x90, "ecircumflex"},
  175.   {0x91, "edieresis"},
  176.   {0x92, "iacute"},
  177.   {0x93, "igrave"},
  178.   {0x94, "icircumflex"},
  179.   {0x95, "idieresis"},
  180.   {0x96, "ntilde"},
  181.   {0x97, "oacute"},
  182.   {0x98, "ograve"},
  183.   {0x99, "ocircumflex"},
  184.   {0x9a, "odieresis"},
  185.   {0x9b, "otilde"},
  186.   {0x9c, "uacute"},
  187.   {0x9d, "ugrave"},
  188.   {0x9e, "ucircumflex"},
  189.   {0x9f, "udieresis"},
  190.   {0xa0, "dagger"},
  191.   {0xa1, "degree"},
  192.   {0xa2, "cent"},
  193.   {0xa3, "sterling"},
  194.   {0xa4, "section"},
  195.   {0xa5, "bullet"},
  196.   {0xa6, "paragraph"},
  197.   {0xa7, "germandbls"},
  198.   {0xa8, "registered"},
  199.   {0xa9, "copyright"},
  200.   {0xaa, "trademark"},
  201.   {0xab, "acute"},
  202.   {0xac, "dieresis"},
  203.   {0xad, "notequal"},
  204.   {0xae, "AE"},
  205.   {0xaf, "Oslash"},
  206.   {0xb0, "infinity"},
  207.   {0xb1, "plusminus"},
  208.   {0xb2, "lessequal"},
  209.   {0xb3, "greaterequal"},
  210.   {0xb4, "yen"},
  211.   {0xb5, "mu"},
  212.   {0xb6, "partialdiff"},
  213.   {0xb7, "Sigma"},
  214.   {0xb8, "product"},
  215.   {0xb9, "pi"},
  216.   {0xba, "integral"},
  217.   {0xbb, "ordfeminine"},
  218.   {0xbc, "ordmasculine"},
  219.   {0xbd, "Omega"},
  220.   {0xbe, "ae"},
  221.   {0xbf, "oslash"},
  222.   {0xc0, "questiondown"},
  223.   {0xc1, "exclamdown"},
  224.   {0xc2, "logicalnot"},
  225.   {0xc3, "radical"},
  226.   {0xc4, "florin"},
  227.   {0xc5, "approxequal"},
  228.   {0xc6, "Delta"},
  229.   {0xc7, "guillemotleft"},
  230.   {0xc8, "guillemotright"},
  231.   {0xc9, "ellipsis"},
  232.   {0xca, "space"},
  233.   {0xcb, "Agrave"},
  234.   {0xcc, "Atilde"},
  235.   {0xcd, "Otilde"},
  236.   {0xce, "OE"},
  237.   {0xcf, "oe"},
  238.   {0xd0, "endash"},
  239.   {0xd1, "emdash"},
  240.   {0xd2, "quotedblleft"},
  241.   {0xd3, "quotedblright"},
  242.   {0xd4, "quoteleft"},
  243.   {0xd5, "quoteright"},
  244.   {0xd6, "divide"},
  245.   {0xd7, "lozenge"},
  246.   {0xd8, "ydieresis"},
  247.   {0xd9, "Ydieresis"},
  248.   {0xda, "fraction"},
  249.   {0xdb, "currency"},
  250.   {0xdc, "guilsinglleft"},
  251.   {0xdd, "guilsinglright"},
  252.   {0xde, "fi"},
  253.   {0xdf, "fl"},
  254.   {0xe0, "daggerdbl"},
  255.   {0xe1, "periodcentered"},
  256.   {0xe2, "quotesinglbase"},
  257.   {0xe3, "quotedblbase"},
  258.   {0xe4, "perthousand"},
  259.   {0xe5, "Acircumflex"},
  260.   {0xe6, "Ecircumflex"},
  261.   {0xe7, "Aacute"},
  262.   {0xe8, "Edieresis"},
  263.   {0xe9, "Egrave"},
  264.   {0xea, "Iacute"},
  265.   {0xeb, "Icircumflex"},
  266.   {0xec, "Idieresis"},
  267.   {0xed, "Igrave"},
  268.   {0xee, "Oacute"},
  269.   {0xef, "Ocircumflex"},
  270.   {0xf0, AFM_ENC_NONE},
  271.   {0xf1, "Ograve"},
  272.   {0xf2, "Uacute"},
  273.   {0xf3, "Ucircumflex"},
  274.   {0xf4, "Ugrave"},
  275.   {0xf5, "dotlessi"},
  276.   {0xf6, "circumflex"},
  277.   {0xf7, "tilde"},
  278.   {0xf8, "macron"},
  279.   {0xf9, "breve"},
  280.   {0xfa, "dotaccent"},
  281.   {0xfb, "ring"},
  282.   {0xfc, "cedilla"},
  283.   {0xfd, "hungarumlaut"},
  284.   {0xfe, "ogonek"},
  285.   {0xff, "caron"},
  286.   {-1,   NULL},
  287. };
  288.